<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean id="instance" scope="request"
class="bean.SearchRecipeBean" />
<jsp:setProperty property="*" name="instance" />

<%
if ("true".equals(request.getParameter("process"))) {
%>
<jsp:forward page="/SearchRecipeServlet" />
<%
}
%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
	<title>Submit Recipe</title> 
 	<meta content="Infoiasi" name="COMPANY"> 
	<meta content="2010" name="CREATED"> 
	<meta content="Infoiasi" name="CREATEDBY"> 
	<meta content="food cook book What you eat is who you are" name="keywords"> 
	<meta content="What you eat is who you are" name="description"> 
	<meta content="Infoiasi" name="Author"> 
	
	<link rel="stylesheet" type="text/css" media="all" href=
	"style/reset.css" />
	<link rel="stylesheet" type="text/css" media="all" href=
	"style/text.css" />
	<link rel="stylesheet" type="text/css" media="all" href=
	"style/960.css" />
</head>
<body style="text-align:center">
	<div id="wrapper">
	<div class="container_12">
		<div class="grid_4">
			<a href="index.htm" title="Home"><div class="logo"></div></a>
		</div>
		<div class="grid_3">
			<a href="browse.jsp" title="Browse"><img src="res/browse.png" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.7;this.filters.alpha.opacity=70" style="opacity:0.7;filter:alpha(opacity=70);" border="0"></a>
		</div>
		<div class="grid_3">
			<a href="submit.jsp" title="Search"><img src="res/submit.png" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.7;this.filters.alpha.opacity=70" style="opacity:0.7;filter:alpha(opacity=70);" border="0"></a>
		</div>
		<div class="clear">&nbsp;</div>
		<div class = "container">
		</div>	
		<div class = "container2">		
			<div class="grid_12">
				<h1>Search</h1>
				<h2>Search a recipe using description: </h2>
			</div>
			<div class="clear">&nbsp;</div>
			<div class="grid_9" style="color:white; text-align:right;">
				<form method="post" action=<%= request.getRequestURI() %>>
					Description: <input type="text" name="description" value="" size="100"><br>
					<input type="submit" value="Search" />
					<input type="hidden" name="process" value="true" />
                                        <%  Object obj = instance.getResult();
							if (null != obj) { %>
								<h4><%= obj %></h4>
						<% } %>
				</form>
			</div>
		</div>
	</div>
	</div>
</body>
</html>
